import React, { Component } from 'react'

import { Table } from 'antd'
class CommTable extends Component {
    constructor(props) {
        super(props)
    }
    render() {
        return (
            <div className="comm-table">
                <Table {...this.props}></Table>
            </div>
        )
    }

}
CommTable.defaultProps = {
    columns: [],
    dataSource: [],
    bordered: true,
    pagination: {
        position: ['bottomCenter'],
        current: 1,
        pageSize: 2,
        total: 100,
        pageSizeOptions: [10, 15, 20, 25, 30, 35, 40, 45, 50],
        onChange(page, pageSize) {

        },
        onShowSizeChange(current, size) {

        }
    }
};
/*
 pagination:false||{
    position:[] //topLeft | topCenter | topRight |bottomLeft | bottomCenter | bottomRight
    current://当前页
    defaultPageSize:10,//每页显示多少条数据
    hideOnSinglePage	只有一页时是否隐藏分页器
    pageSize	每页条数
    pageSizeOptions	指定每页可以显示多少条
    total	数据总数	number	0	
    onChange	页码改变的回调，参数是改变后的页码及每页条数	function(page, pageSize)	-	
    onShowSizeChange	pageSize 变化的回调
 }
*/
export default CommTable